package com.jy.appmarket.network.resultdata;

import java.util.List;

import com.jy.app.market.idata.Doc;
import com.jy.app.market.idata.data.PushTag;

public class PushTagResultData extends BaseResultData {
	private List<String> mTags;
	
	@Override
	public boolean parseResult(String result) {
		Doc doc = Doc.fromJson(result);
		if (doc == null) {
			return false;
		}
		setDataType(doc.getDataType());
		setStatus(doc.getStatus());
		setMessage(doc.getMessage());

		if (doc.isOk()) {
			if (doc.isType(PushTag.class)) {
				PushTag data = doc.getData();
				mTags = data.getTags();
				return true;
			}
		}
		return false;
	}

	public List<String> getmTags() {
		return mTags;
	}

	public void setmTags(List<String> mTags) {
		this.mTags = mTags;
	}


}
